package com.qf.common.utils;

import java.util.regex.Pattern;

/**
 * Created by Administrator on 2018/1/15.
 */

public class PhoneNumberUtils {

    /**
     * 验证手机号是否符合格式
     * @param phone
     * @return
     */
    public static boolean checkPhone(String phone) {
        String reg = "^1[3,5,6,7,8,9][0-9]{9}";
        if (Pattern.matches(reg, phone)) {
            return true;
        } else {
            return false;
        }
    }
}
